const isValid:any = {
	0: '否',
	1: '是'
}
// 规则管理表格列
export const channelColumns: any[] = [
	{ title: '编码', dataIndex: 'channelNo', align: 'center',width:250 },
	{ title: '名称', dataIndex: 'name', align: 'center',width:150 },
	{ title: '主体 ', dataIndex: 'subjectName', align: 'center',width:150 },
	{ title: '所属公司', dataIndex: 'orgName', align: 'center' ,width:150},
	{ title: '城市', dataIndex: 'cityName', align: 'center',width:150 },
	{ title: '渠道类型-一级', dataIndex: 'channelTypeOneStr', align: 'center',width:150 },
	{ title: '渠道类型-二级', dataIndex: 'channelTypeTwoStr', align: 'center',width:150 },
	{
		title: '是否与商品方案合并审核', dataIndex: 'commodityType', align: 'center',width:150, render: (text: any) => {
			if (text === 1) {
			return '是'
			}
						if (text === 2) {
			return '否'
			}
			return ''
	}},
	{
		title: '状态', dataIndex: 'statusStr', align: 'center',width:150 },
	{title: '是否有效', dataIndex: 'isValid', align: 'center' ,width:150,render: (text: any) => isValid[text] || text},
	{title: '开始时间', dataIndex: 'startDate', align: 'center',width:200},
	{title: '结束时间', dataIndex: 'endDate', align: 'center',width:200},
	{title: '创建人', dataIndex: 'createName', align: 'center',width:150},
	{title: '创建时间', dataIndex: 'createTime', align: 'center',width:200},
]

// 奖励商品表格列
export const RewardColumns: any[] = [
	{title: '商品方案ID', dataIndex: '', align: 'center'},
	{title: '商品方案名称', dataIndex: '', align: 'center'},
	{title: '品牌/车系/车型 ', dataIndex: '', align: 'center'},
	{title: '星级', dataIndex: '', align: 'center'},
	{title: '订单类型', dataIndex: '', align: 'center'},
	{title: '定金', dataIndex: '', align: 'center'},
	{title: '押金', dataIndex: '', align: 'center'},
	{title: '租期', dataIndex: '', align: 'center'},
	{title: '月租金-新签', dataIndex: '', align: 'center'},
	{title: '月租金-续签', dataIndex: '', align: 'center'},
	{title: '首付款', dataIndex: '', align: 'center'},
	{title: '尾款', dataIndex: '', align: 'center'},
	{title: '状态', dataIndex: '', align: 'center'},
]

// eslint-disable-next-line no-shadow
export enum PageType {
	Add = 'add',
	Edit = 'edit',
	Detail = 'detail',
}
